<?php

namespace app\services;

use plugin\admin\app\model\Auth;

class AuthService
{
    public static function list()
    {
        $auths = Auth::where('is_enable', 1)->orderBy('sort')->get()->toArray();

        foreach ($auths as $key=>$auth) {
            $auth['thumb'] = full_url($auth['thumb']);
            $auths[$key] = $auth;
        }

        return $auths;
    }
}